//
//  ViewController.m
//  GetLastPhotoTest
//
//  Created by apple on 17/5/31.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "ViewController.h"
#import "LastImageView.h"
#import <Photos/Photos.h>
#import <AssetsLibrary/AssetsLibrary.h>
@interface ViewController ()

@property(nonatomic,strong)LastImageView *lastImageView;
@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
}
-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES];
}

-(void)getLastImageData
{
    PHAsset *asset = [PHAsset latestAsset];
    PHCachingImageManager *imageManager = [[PHCachingImageManager alloc] init];
    [imageManager requestImageForAsset:asset targetSize:CGSizeZero contentMode:PHImageContentModeDefault options:nil resultHandler:^(UIImage * _Nullable result, NSDictionary * _Nullable info)
    {
        if (result)
        {
//            _imgV.image = result;
//            [self showSuitFrame:_imgV img:result];
        }
    }];
}
- (IBAction)beautifulImageClick:(id)sender {
}

- (IBAction)takePhotoClick:(id)sender {
}
@end
